/*
 * Copyright 2007-2008 by Matthias Buch-Kromann <mbk.isv@cbs.dk>.
 * 
 * This file is part of the Open-source Dependency Toolkit (OSDT),
 * see http://code.google.com/p/open-source-dependency-toolkit. 
 * 
 * The OSDT is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 3 of the License,
 * or (at your option) any later version.
 *
 * The OSDT is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with the OSDT in the files COPYING and COPYING.LESSER. If
 * not, see http://www.gnu.org/licenses.
 */

package org.osdtsystem.functions;

import org.osdtsystem.graphs.GraphAccessor;
import org.osdtsystem.values.Augmentation;
import org.osdtsystem.values.Cost;
import org.osdtsystem.models.SubmodelID;

/**
 * A function that computes a cost for an augmentation by calling a particular
 * cost model in the model collection.
 * @author Matthias Buch-Kromann <mbk.isv@cbs.dk>
 */
public class TodoScoreModel extends AbstractSingletonFunction<Cost> {
    // Fields
    final SubmodelID modelID;
    
    /**
     * Create an instance by specifying the model identifier in the model collection, and
     * an augmentationFunc function that computes an augmentationFunc. 
     * @param modelID the model identifier in the model collection
     * @param augmentation a subfunction that computes an augmentationFunc
     */
    public TodoScoreModel(final SubmodelID modelID, final Function<Augmentation> augmentation) {
        super(augmentation);
        this.modelID = modelID;
    }

    @Override
    public Cost _singletonFunctionValue(LocalFunction<?, ?> caller, FunctionContext context, GraphAccessor accessor) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    void toStringBuilder(FunctionStringBuilder builder) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
